home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
WINPROGS
/
VCSLID.ZIP
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1993-08-31
|
2KB
|
106 lines
##################################################################
#
# Copyright 1993 Northeast Data Corp. All Rights Reserved
#
##################################################################
##################################################################
#
# makefile
#
# Builds the slider test application
#
# Author: Wade H. Cobb
#
# Date: August 1993
#
##################################################################
##### APP Macros #####
APPNAME = slidetst
APPSRCS = $(APPNAME).c
APPOBJS =
### For C7 compiler ###
C7=1
##### APP Library Macros #####
APPLIBS = libw llibcew slider
APPMOD = -AL
##### APP Include Macros #####
APPINCLS = $(APPNAME).h
##### APP Resource Macros #####
APPRCFILES = $(APPNAME).ico $(APPNAME).rc
##### DEBUG Version Built #####
DEBUG = 1
##### Build Option Macros #####
!if $(DEBUG)
DDEF = -DDEBUG
CLOPT = -Zid -Od
MOPT = -Zi
LOPT = /CO /LI /MAP
!else
DDEF =
CLOPT = -Os
LOPT =
!endif
##### General Macros #####
DEF =
##### Tool Macros #####
ASM = masm -Mx $(MOPT) $(DDEF) $(DEF)
CC = cl -nologo -c $(APPMOD) -G2sw -Zp -W3 $(CLOPT) $(DDEF) $(DEF)
CC2 = cl -nologo -c $(DLLMOD) -G2sw -Zp -W3 $(CLOPT) $(DDEF) $(DEF)
LINK = link /NOD /NOE $(LOPT)
RC = rc $(DDEF) $(DEF)
HC = hc
##### Inference Rules #####
.c.obj:
$(CC2) $*.c
.asm.obj:
$(ASM) $*.asm;
.rc.res:
$(RC) -r $(DEMO) $*.rc
##### Main (default) Target #####
goal: $(APPNAME).exe
##### Dependents For Goal and Command Lines #####
slidetst.obj: slidetst.c slider.h
$(CC) $*.c
$(APPNAME).exe: $(APPSRCS:.c=.obj) slidetst.def $(APPNAME).res
$(LINK) @<<
$(APPSRCS:.c=.obj) $(APPOBJS),
$(APPNAME).exe,
$(APPNAME).map,
$(APPLIBS),
slidetst.def
<<
$(RC) -T $(APPNAME).res
!if $(DEBUG)
!if !$(C7)
cvpack -p $(APPNAME).exe
!endif
!endif
##### Dependents #####
$(APPSRCS:.c=.obj): $(APPINCLS)
$(APPNAME).res: $(APPINCLS) $(APPRCFILES)
##### Clean Directory #####
clean:
-del *.obj
-del *.res
-del *.map
-del *.sym
-del *.lib